<%@page import="com.system.dao.RoleDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="ui" uri="http://com.am.tag" %>
<%@ include file="../common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'userEdit.jsp' starting page</title>
    <script type="text/javascript" src="${path}/js/public/grid.js"></script>
    
    <script type="text/javascript">
    		 function oprtRender(value,record,columnObj,grid,colNo,rowNo)
	  		 {
	  			return "<a href='javascript:void(0)' style='text-decoration: none;' onclick='dressingDetails(" + grid.getColumnValue('id',rowNo) + ")'>查看详情</a>";
	  		 }
		  		
		  	function dressingDetails(id){
				openDailog("viewSheet","${path}/jsp/doctor/dressing.jsp?record_id=" + id,580,550,"换药详情",false,true,null);
		  	}
		  	
		  	function doQuery()
	  		{
		  		if($("#startDate").val().localeCompare($("#endDate").val()) > 0)
	 			{
	 				alert("起止日期不能大于结束日期");
	 				return;
	 			}
	  			resetGrid(mygrid,"queryForm");
	  		}
	  		
	  		function doReset()
	    	{
	  			$("#user_name").val("");
	    		$("#startDate").val("");
	    		$("#endDate").val("");
	    		$("#person_name").val("");
	    		
	    	}
    </script>
  </head>
  
  <body style="overflow-x: hidden;overflow-y:hidden;">
   		<table cellSpacing="0" cellPadding="0" style="width:100%;height:100%;" border="0">
   			<tr>
				<td class="windowTitle">护士工作站  &gt; 换药查询</td>
			</tr>
	  		<tr id="">
	  			<td style="height:35px;width:100%" class="windowHead">	
		  			<form id="queryForm">
						<table cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0"  style="margin-left: 10px;">
							<tr>
								<td class="mywindowTitle">
									换药病人：<input name="search_CONTAIN_person_name" id="person_name" class="textbox" style="width: 130px;margin-right: 10px" />&nbsp;&nbsp;
									接诊医生：<input name="search_CONTAIN_user_name" id="user_name" class="textbox" style="width: 130px;margin-right: 10px" />&nbsp;&nbsp;
									换药时间：<ui:DateTimePicker name="search_GTE_create_time" id="startDate" dateFormat="yyyy-MM-dd HH:mm:ss" style="width:155px" />
									<span style="margin-left:0px;margin-right:0px;">&gt;&gt;</span>
									<ui:DateTimePicker name="search_LTE_create_time" id="endDate" dateFormat="yyyy-MM-dd HH:mm:ss" style="width:155px" />
									&nbsp;&nbsp;<ui:Button type="query" onclick="doQuery()">查询</ui:Button>&nbsp;&nbsp;
									<ui:Button onclick="doReset()"><img src="${path}/images/menu/reset.png" />重置</ui:Button>&nbsp;&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>
					</form>
					<br/>
					<a style="text-decoration: none;"></a>
				</td>
			</tr>
  		
			<td style="width:100%;height:100%;overflow:hidden"  class="windowBody">
				<div id="mess_box" style="width:100%;height:100%;overflow:hidden">
						<ui:Grid id="mygrid" css="width:100%;height:100%"
			    			 onCellClicked="selectedSingleRow2"
			    		 	 dataProvider="com.system.provider.DressingListProvider:getData" >
			    		 	<ui:GridField name="id" header="" align="center" width="0"/>
			    			<ui:GridField name="person_name" header="换药病人" align="center" width="25%"/>
			    			<ui:GridField name="create_time" header="换药时间" align="center" width="30%"/>
			    			<ui:GridField name="user_name" header="接诊医生" align="center" width="25%"/>
			    			<ui:GridField name="oprt" header="操作" align="center" render="oprtRender" width="19.9%"/>
		    			</ui:Grid>
	    		</div>
		   	 </td>
		 </table>
  </body>
</html>
